
<style type="text/css">
  	span.error{
    	background:no-repeat;
    	float:left;
    	margin-left:3em;
        clear: both;
        color: red;
  	}
</style>


<!-- 增加管理员窗口 -->
<div id="addAdminModal" class="modal fade " data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-height="350" style="display: none;">
	  <!-- <div class="modal-dialog"> -->
      	<!-- <div class="modal-content"> -->
		<form  id = "addAdminForm" style="margin: 0"  name="dataForm" method="post"	action="{{ctx}}/mam-rbac/admins/add">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
				<h3 id="myModalLabel">新增管理员</h3>
		</div>
		<div class="modal-body" style=" overflow: scroll; height: 350px; ">
			<table border="0" cellpaddilistng="0" cellspacing="0" class="table table-bordered">
				<tbody id="tbody-addAdmin-list">
					<tr>
						<td style=" width: 25%; "> <span> *用户名 ： </span></td>
						<td><input type="text" id="input-addAdmin-username" name = "username" class="form-control wid200px"></td>
					</tr>
					<tr>
						<td><span> *密码 ：</span></td>
						<td>
							<input type="password" style="display:none" />
							<input type="password" id="input-addAdmin-password" name = "password" class="form-control wid200px" onpaste="return false" >
							
						</td>
					</tr>
					<tr>
						<td><span> *密码确认 ：</span></td>
						<td>
							<input type="password" id="addAdmin-crmPassword" name="crmPassword" class="form-control wid200px" onpaste="return false" >
							
						</td>
					</tr>
					<tr >
						<td><span> *姓名 ：</span></td>
						<td><input type="text" id="input-addAdmin-name" name = "name" class="form-control wid200px"></td>
					</tr>
					<tr >
						<td>
							<span> 性别 ：</span>
						</td>
						<td id="addAdmin-use">
							<input type="radio" id="input-addAdmin-sex" name="sex" value="M" checked="true"></input>
				            <span>男</span>      
				         	<input type="radio" id="input-addAdmin-sex" name="sex" value="F"></input>
				            <span>女</span>  
						</td>
					</tr>
					<tr > 
						<td><span> 联系电话 ：</span></td>
						<td><input type="text" id="input-addAdmin-telephone" name = "telephone" class="form-control wid200px"></td>
					</tr>
					<tr >
						<td><span> 联系地址：</span></td>
						<td><input type="text" id="input-addAdmin-address" name = "address" class="form-control wid200px"></td>
					</tr>

				</tbody>

				
			</table>
		</div>
		<div class="modal-footer">
			<input type="button" value="创建管理员" class="btn btn-primary" aria-hidden="true" onclick="addAdmin()">
			<button class="btn btn-common" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
		</form>
		<!-- </div> -->
	<!-- </div> -->
</div>




<!-- 编辑管理员界面 -->
<div id="editAdminModal" class="modal fade" tabindex="-1" data-backdrop="static"
	role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-height="350" style="display: none;">
	<form  id="editAdminForm" style="margin: 0"  name="dataForm" method="post"	action="{{ctx}}/mam-rbac/admins/update">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
			<h3 id="myModalLabel">管理员信息修改</h3>
		</div>



		<div class="modal-body" style=" overflow: scroll; height: 350px; ">

			<table class="table table-bordered">
				<tbody >
					
					<tr>

						<td style=" width: 20%;"><span> 用户名: </span></td>
						<td class="edittext">
							<input class="form-control wid200px" id="editAdmin-adminId" name="id" type="hidden"></input>
							<input type="hidden" id="editAdmin-username" name="username" class="form-control wid200px"></input>
							<span id = "editAdmin-lb_username"></span>
						</td>
					</tr>
					<tr>
						<td><span> 姓名: </span></td>
						<td class="edittext">
							<input type="text" id="editAdmin-name" name="name" class="form-control wid200px"></input>
						</td>

					</tr>
					<tr>
						<td><span> 性别: </span></td>

						<td id="editAdmin-sex">
						 
						 	<input type="radio" id="editAdmin-sex" name="sex" value="M"></input>
				            <span>男</span>      
				         	<input type="radio" id="editAdmin-sex" name="sex" value="F"></input>
				            <span>女</span>      
						</td>
						
					</tr>
					<tr>
						<td><span> 联系电话: </span></td>
						<td class="edittext">
							<input type="text" id="editAdmin-telephone" name="telephone" class="form-control wid200px"></input>
						</td>

					</tr>
					<tr>
						<td><span> 联系地址: </span></td>
						<td class="edittext">
							<input type="text" id="editAdmin-address" name="address" class="form-control wid200px"></input>
						</td>

					</tr>

				</tbody>
			</table>



			
		</div>

		<div class="modal-footer">
			<input type="button" value="更新管理员信息" id="btn-submitUserInfo" class="btn btn-primary" aria-hidden="true" />
			<button class="btn btn-common" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>

	</form>

</div>

<!-- 编辑密码界面 -->
<div id="setPasswordModal" class="modal fade" tabindex="-1" data-backdrop="static"
	role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-height="200" style="display: none;">
	<form  id="setPasswordForm" style="margin: 0" name="dataForm" method="post"	action="{{ctx}}/mam-rbac/admins/set_password">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
			<h3 id="myModalLabel">密码修改</h3>
		</div>



		<div class="modal-body" style=" overflow: scroll; height: 200px; ">
			<!-- <span> 用户ID </span> -->

			<table class="table table-bordered">
				<tbody >
					
					<tr>

						<td style=" width: 20%;"><span> 用户名: </span></td>
						<td class="edittext">
							<input class="form-control wid200px" id="editpsw-adminId" name="id" type="hidden"></input>
							<input type="hidden" id="editpsw-username" name="username" class="form-control wid200px"></input>
							<span id = "editpsw-lb_username"></span>
						</td>
					</tr>
					<tr>
						<td><span> 密码: </span></td>
						<td class="edittext">
						<!-- 欺骗浏览器记住密码的功能 -->
							<input type="password" style ="display:none"></input>
							<input type="password" id="editpsw-password" name="password" class="form-control wid200px" onpaste="return false" ></input>
						</td>

					</tr>
					<tr>
						<td><span> 密码确认: </span></td>
						<td class="edittext">
							<input type="password" id="editpsw-password-confirm" name="edit_crmPassword" class="form-control wid200px" onpaste="return false" ></input>
						</td>

					</tr>
					
				</tbody>
			</table>



			
		</div>

		<div class="modal-footer">
			<input type="button" value="提交" id="btn-submitPassword" class="btn btn-primary" aria-hidden="true" />
			<button class="btn btn-common" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>

	</form>

</div>
